<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page isELIgnored="false"%> 
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<html>
    <head>
        <title>小贷登录</title>
        <meta charset="utf-8">
        <meta name="viewport" content="target-densitydpi=device-dpi, width=device-width, initial-scale=1, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
        <link rel="stylesheet" href="${pageContext.request.contextPath}/resources/css/fonts/font-awesome.min.css">
        <link rel="stylesheet" href="${pageContext.request.contextPath}/resources/css/ui-box.css">
        <link rel="stylesheet" href="${pageContext.request.contextPath}/resources/css/ui-base.css">
        <link rel="stylesheet" href="${pageContext.request.contextPath}/resources/css/ui-color.css">
        <link rel="stylesheet" href="${pageContext.request.contextPath}/resources/css/appcan.icon.css">
        <link rel="stylesheet" href="${pageContext.request.contextPath}/resources/css/appcan.control.css">
        <link rel="stylesheet" href="${pageContext.request.contextPath}/resources/css/user.css">
        
        <link rel="stylesheet" href="${pageContext.request.contextPath}/resources/css/bootstrap.min.css" />
        <link rel="stylesheet" href="${pageContext.request.contextPath}/resources/css/bootstrap-theme.min.css" />
    </head>
    <body class="um-vp " ontouchstart>
        <div id="page_0" class="up ub ub-ver bc-bg" tabindex="0">
            <!--header开始-->
            <div id="header" class="uh bc-text-head ub bc-head">
                <div class="nav-btn" id="nav-left">
                    <div class="ub-img icon-close umw2 umh4"></div>
                </div>
                <h1 class="ut ub-f1 ulev-3 ut-s tx-c" tabindex="0">登录</h1>
                <div class="nav-btn nav-bt" id="nav-right"></div>
            </div>
        </div>
        <body class="um-vp bc-bg" ontouchstart>
        <div id="page_0" class="up ub ub-ver" tabindex="0">
            <div id="content" class="ub-f1 tx-l ub ub-ver c-wh1">
                <div class="logous">
                <div class="uinn ub ub-ac ub-pc">
                    <img src="${pageContext.request.contextPath}/resources/css/res/logo.png" style="width: 80px;" />
                </div>
                <div class="uinn ub ub-ac ub-pc ub-ver">
                    <div class="ulev1 t-blu addfont uinn">
                                                                    小额贷款系统
                    </div>
                </div>
                </div>
                <div class="ub ub-ver ub-f1">
                    <form method="post" action="${pageContext.request.contextPath}/consumer/sys/login_do" onsubmit="return ff()">
                        <div class="uba b-gra umar-a uc-a1 c-wh">
                            <div class="ub ub-ac">
                                <div class="umhw resuser ub-img umar-l"></div>
                                <div class="ub-f1 uinput uinn">
                                    <label style="width: 8%;"><img src="${pageContext.request.contextPath}/resources/image/name.png" ></label>
                                    <label style="width: 88%;"><input placeholder="请输入手机号" id="uid"  value="" name="customer_name" type="text" class="uc-a1"></label>
                                </div>
                            </div>
                        </div>
                        <div class="uba b-gra umar-a uc-a1 c-wh">
                            <div class="ub ub-ac">
                                <div class="umhw respwd ub-img umar-l"></div>
                                <div class="ub-f1 uinput uinn">
                                    <label style="width: 8%;"><img src="${pageContext.request.contextPath}/resources/image/password.png" ></label>
                                    <label style="width: 88%;"><input placeholder="请输入密码" id="upwd"  value="" name="customer_password" type="password" class="uc-a1"></label>
                                    
                                </div>
                            </div>
                        </div>
                        <div class="ub umar-a ub-ac jutop">
                        </div>
                        <div class="nisuo">
                            <button type="submit" class="btn btn-primary btn-lg btn-block">登录</button>
                        </div>
                        <div class="umar-a ub t-blu">
                            <div class="ub-f1 ulev-1 uinn3">
                                <a href="${pageContext.request.contextPath}/consumer/sys/register" class="fonus"> 立即注册</a>                           
                            </div>
                            <div class="ub-f1 tx-r">
                            <a href="${pageContext.request.contextPath}/consumer/sys/reset" class="fonus"> 忘记密码</a>                    
                            </div>
                        </div>
                        <div class="text-center">
                                <p style="color:red;">${tishi}</p>                         
                        </div>
                    </form>
                </div>
            </div>
            <div id="footer" class=""></div>
        </div>
        <script type="text/javascript" src="${pageContext.request.contextPath}/resources/js/jquery.min.js"></script>
        <script>
        	function ff(){
					if($("#uid").val()==""){
						$("#tishi").text("手机号不能为空");
						return false;
					}
					if($("#upwd").val()==""){
						$("#tishi").text("密码不能为空");
						return false;
					}
					if($("#uid").val()!=""&&$("#upwd").val()!=""){
						return true;
					}
				}
        </script>
    </body>
</html>